<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container-fluid">
      <a class="brand" href="#">Bali Fantastico</a>
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>
      <ul class="nav">
        <li class="<%= 'active' if %w[home].include?(controller_name) %>"><%= link_to "Dashboard", root_url %></li>
        <% if @test_harusnya_current_user %>
        <li class="<%= 'active' if %w[submissions].include?(controller_name) %>"><%= link_to "Submission", submissions_path %></li>
        <!-- <li class="<%#= 'active' if %w[summary].include?(controller_name) %>"><%#= link_to "Data Summary", submissions_path %></li> -->
        <li class="<%= 'active' if %w[admin].include?(controller_name) %>"><%= link_to "Admin", '' %></li>
        <% end %>
      </ul>
      <ul class="nav pull-right">
        <% if @test_harusnya_current_user %>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <%= "Account + Settings" %>
            <!-- <b class="caret"></b> -->
          </a>
          <ul class="dropdown-menu">
            <li><%= link_to "English", action: "index" %></li>
            <li><%= link_to "Bahasa Indonesia", action: "index" %></li>
            <li class="divider"></li>
            <li><%= link_to "My Profile", action: "index" %></li>
            <li class="divider"></li>
            <li><%= link_to "Logout", '', method: :delete %></li>
          </ul>
        </li>
        <% else %>
        <li><%= link_to "Sign-in", '' %></li>
        <% end %>
      </ul>
    </div>
  </div>
</div>